package com.booza.model;

import java.util.Date;

/**
 * Domain model for tournament instance used by system generated tournaments. This is a specific daily instance of a
 * tournament definition @see TournamentDef.
 */
public class TournamentInstance extends TournamentBase
{
	private Integer tournamentId;
	private Integer tournamentInstanceId;
	private Date startime;
	private Date endtime;
	private int status;
	private String winner;
	private TournamentDef tournamentDef;

	public Integer getShottimelimit()
	{
		return tournamentDef.getShottimelimit();
	}

	public int getWager()
	{
		return tournamentDef.getWager();
	}

	public String getName()
	{
		return tournamentDef.getName();
	}

	public GameType getGame()
	{
		return tournamentDef.getGame();
	}

	public int getStatus()
	{
		return status;
	}

	public void setStatus(int status)
	{
		this.status = status;
	}

	public Date getEndtime()
	{
		return endtime;
	}

	public void setEndtime(Date endtime)
	{
		this.endtime = endtime;
	}

	public Date getStartime()
	{
		return startime;
	}

	public void setStartime(Date startime)
	{
		this.startime = startime;
	}

	public Integer getTournamentId()
	{
		return tournamentId;
	}

	public void setTournamentId(Integer tournamentId)
	{
		this.tournamentId = tournamentId;
	}

	public Integer getTournamentInstanceId()
	{
		return tournamentInstanceId;
	}

	public void setTournamentInstanceId(Integer tournamentInstanceId)
	{
		this.tournamentInstanceId = tournamentInstanceId;
	}

	public String getWinner()
	{
		return winner;
	}

	public void setWinner(String winner)
	{
		this.winner = winner;
	}

	public TournamentDef getTournamentDef()
	{
		return tournamentDef;
	}

	public void setTournamentDef(TournamentDef tournamentDef)
	{
		this.tournamentDef = tournamentDef;
	}

	public String getDescription()
	{
		return this.tournamentDef.getDescription();
	}

	public Date getStarttime()
	{
		return this.tournamentDef.getStarttime();
	}
}
